package java1;

import java.math.BigDecimal;
import java.util.Scanner;

public class FDS {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while(true){
			double x=sc.nextDouble();
			double y=sc.nextDouble();
			BigDecimal a =new BigDecimal(Double.toString(x));
			BigDecimal b =new BigDecimal(Double.toString(y));
			System.out.println(a.add(b));
			System.out.println(a.multiply(b));
	}
	}
}